import { createStore, applyMiddleware, combineReducers } from 'redux'
import counterReducer from './reducers/count'
import personReducer from './reducers/person'
import thunk from 'redux-thunk'
import {composeWithDevTools} from 'redux-devtools-extension'

const allReducer = combineReducers({
    count: counterReducer,
    persons: personReducer
})
const store = createStore(allReducer, composeWithDevTools(applyMiddleware(thunk)))

export default store
